from apps.vadmin.op_drf.models import BaseModel
from django.db.models import CharField, IntegerField, BooleanField, TextField


class Kq_Extend_infos(BaseModel):
    kqId = IntegerField(verbose_name='客户Id')
    compName = CharField(max_length=255, verbose_name='公司名称')
    extendDesc = TextField(verbose_name='描述', blank=True, null=True)
    prod_list = CharField(max_length=128, verbose_name='产品类型（泵）', blank=True, null=True)
    prod_competitor_brand = CharField(max_length=128, verbose_name='产品竞争对手（泵）', blank=True, null=True)
    prod_recommend_brand = CharField(max_length=128, verbose_name='推荐的品牌（泵）', blank=True, null=True)
    cus_cap = CharField(max_length=32, verbose_name='客户的市值', blank=True, null=True)
    cus_revenue = CharField(max_length=32, verbose_name='客户的年营收（主营业务）', blank=True, null=True)
    cus_profit = CharField(max_length=32, verbose_name='客户的年净利润', blank=True, null=True)
    cus_product = CharField(max_length=128, verbose_name='客户生产的产品', blank=True, null=True)
    cus_competitor = CharField(max_length=128, verbose_name='客户的竞争对手', blank=True, null=True)
    cus_customer = CharField(max_length=128, verbose_name='客户的客户', blank=True, null=True)
    cus_provider = CharField(max_length=128, verbose_name='客户的上游供应商', blank=True, null=True)


    class Meta:
        verbose_name = '客户拓展信息表'
        verbose_name_plural = verbose_name

    def __str__(self):
        return f"{self.kqId}"
